package POJO;

class Result{
    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}

public class Response {
    private Result result;
    private Object data;

    public Result getResult() {
        return result;
    }

    public void setResult(Result result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public Response(int code,String msg,Object data){
        this.result = new Result();
        this.result.setCode(code);
        this.result.setMsg(msg);
        this.setData(data);
    }

}
